<?php

// Theme
define('THEMENAME','WhiteHouse');
define('THEMENAMESHORT','WhiteHouse');

// names and stuff
define('SITENAME',get_bloginfo('name'));
define('RSSURL',get_bloginfo('rss2_url'));



// Define directory constants
define('INC', TEMPLATEPATH . '/inc');
define('CSS', TEMPLATEPATH . '/css');
define('JS', TEMPLATEPATH . '/js');
define('SNIPS', TEMPLATEPATH . '/snips');

// Define folder constants
define('ROOT', get_bloginfo('template_url'));
define('CSS_FOLDER', ROOT . '/css');
define('JS_FOLDER', ROOT . '/js');
define('IMAGE_FOLDER', ROOT . '/images');

// PRO
if(file_exists(dirname(__FILE__).'/pro/setup.php')){
	define('PRO', TEMPLATEPATH . '/pro');
	define('PRO_FOLDER', ROOT . '/pro');
	require (PRO.'/setup.php');
}else{
	define('VPRO','');
}


// LOCALIZATION
	define('TDOMAIN', 'WhiteHouse');
	define('LANGUAGE_FOLDER', TEMPLATEPATH.'/language');
	load_theme_textdomain(TDOMAIN, LANGUAGE_FOLDER );

//REQUIRE AND SETUP NOW

require (INC.'/myfunctions.php');


require (INC.'/options.class.php');
$GLOBALS['pagelines'] = new Options;

// user options
define('ALLOW',pagelines('credallow'));

require (INC.'/sidebar-setup.php');
if(!function_exists('twitter_messages')) require (INC.'/plugins/twitter.php');
require (INC.'/editoptions.php');




?>
